package com.hfxt.j96springboot.service.impl;

import com.hfxt.j96springboot.dao.TbUserDao;
import com.hfxt.j96springboot.entity.TbUser;
import com.hfxt.j96springboot.service.TbUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("tbUserServiceImpl")
@Transactional(propagation = Propagation.SUPPORTS)
public class TbUserServiceImpl implements TbUserService {

    @Resource
    private TbUserDao tbUserDao;
    @Override
    public TbUser getUserByUsername(String username) {
        return tbUserDao.getUserByUsername(username);
    }
}
